例文Thus replacing is done by deleting the root and putting the " new " element in the root and sifting down, avoiding a sifting up step compared to pop ( sift down of last element ) followed by push ( sift up of new element ).